<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
	<span class="label label-success">添加公司价格</span>
	
	<form id="form1" class="well form-horizontal" action="/sysUser/timePriceSave"  method="post">
	  <input type="hidden" name="company" value="${company}"/>
	  <#list telPriceList as tmp>
	  	<div class="form-actions" style="margin:0px">
			${tmp.startTime?string("HH时mm分ss秒")}至${tmp.endTime?string("HH时mm分ss秒")}时,起步价:${tmp.initialPrice}元   ，  包括公里数:${tmp.initialKm}公里  ， 之后每超过${tmp.overKm}公里加收${tmp.overPlusPrice}元,等待${tmp.waitTime}分钟加收${tmp.waitFee}元<button type="button" class="btn btn-danger" onclick="timePriceDelete('${tmp.id}')">删 除</button>
	  	</div>
	  </#list>
	  
	  <div class="control-group">
	  	  <div class="form-actions" style="margin:0px"></div>
	      <label class="control-label">时间：</label>
	      <div class="controls">
	         <select name="startTime">
	          <option value="00">00时</option>
			  <option value="01">01时</option>
			  <option value="02">02时</option>
			  <option value="03">03时</option>
			  <option value="04">04时</option>
			  <option value="05">05时</option>
			  <option value="06">06时</option>
			  <option value="07">07时</option>
			  <option value="08">08时</option>
			  <option value="09">09时</option>
			  <option value="10">10时</option>
			  <option value="11">11时</option>
			  <option value="12">12时</option>
			  <option value="13">13时</option>
			  <option value="14">14时</option>
			  <option value="15">15时</option>
			  <option value="16">16时</option>
			  <option value="17">17时</option>
			  <option value="18">18时</option>
			  <option value="19">19时</option>
			  <option value="20">20时</option>
			  <option value="21">21时</option>
			  <option value="22">22时</option>
			  <option value="23">23时</option>
			</select>
			<select name="startMinutes">
			  <option value="00">00分</option>
			  <option value="01">01分</option>
			  <option value="02">02分</option>
			  <option value="03">03分</option>
			  <option value="04">04分</option>
			  <option value="05">05分</option>
			  <option value="06">06分</option>
			  <option value="07">07分</option>
			  <option value="08">08分</option>
			  <option value="09">09分</option>
			  <option value="10">10分</option>
			  <option value="11">11分</option>
			  <option value="12">12分</option>
			  <option value="13">13分</option>
			  <option value="14">14分</option>
			  <option value="15">15分</option>
			  <option value="16">16分</option>
			  <option value="17">17分</option>
			  <option value="18">18分</option>
			  <option value="19">19分</option>
			  <option value="20">20分</option>
			  <option value="21">21分</option>
			  <option value="22">22分</option>
			  <option value="23">23分</option>
			  <option value="24">24分</option>
			  <option value="25">25分</option>
			  <option value="26">26分</option>
			  <option value="27">27分</option>
			  <option value="28">28分</option>
			  <option value="29">29分</option>
			  <option value="30">30分</option>
			  <option value="31">31分</option>
			  <option value="32">32分</option>
			  <option value="33">33分</option>
			  <option value="34">34分</option>
			  <option value="35">35分</option>
			  <option value="36">36分</option>
			  <option value="37">37分</option>
			  <option value="38">38分</option>
			  <option value="39">39分</option>
			  <option value="40">40分</option>
			  <option value="41">41分</option>
			  <option value="42">42分</option>
			  <option value="43">43分</option>
			  <option value="44">44分</option>
			  <option value="45">45分</option>
			  <option value="46">46分</option>
			  <option value="47">47分</option>
			  <option value="48">48分</option>
			  <option value="49">49分</option>
			  <option value="50">50分</option>
			  <option value="51">51分</option>
			  <option value="52">52分</option>
			  <option value="53">53分</option>
			  <option value="54">54分</option>
			  <option value="55">55分</option>
			  <option value="56">56分</option>
			  <option value="57">57分</option>
			  <option value="58">58分</option>
			  <option value="59">59分</option>
			</select>
			至
			<select name="endTime">
			  <option value="00">00时</option>
			  <option value="01">01时</option>
			  <option value="02">02时</option>
			  <option value="03">03时</option>
			  <option value="04">04时</option>
			  <option value="05">05时</option>
			  <option value="06">06时</option>
			  <option value="07">07时</option>
			  <option value="08">08时</option>
			  <option value="09">09时</option>
			  <option value="10">10时</option>
			  <option value="11">11时</option>
			  <option value="12">12时</option>
			  <option value="13">13时</option>
			  <option value="14">14时</option>
			  <option value="15">15时</option>
			  <option value="16">16时</option>
			  <option value="17">17时</option>
			  <option value="18">18时</option>
			  <option value="19">19时</option>
			  <option value="20">20时</option>
			  <option value="21">21时</option>
			  <option value="22">22时</option>
			  <option value="23">23时</option>
			</select>
			<select name="endMinutes">
			  <option value="00">00分</option>
			  <option value="01">01分</option>
			  <option value="02">02分</option>
			  <option value="03">03分</option>
			  <option value="04">04分</option>
			  <option value="05">05分</option>
			  <option value="06">06分</option>
			  <option value="07">07分</option>
			  <option value="08">08分</option>
			  <option value="09">09分</option>
			  <option value="10">10分</option>
			  <option value="11">11分</option>
			  <option value="12">12分</option>
			  <option value="13">13分</option>
			  <option value="14">14分</option>
			  <option value="15">15分</option>
			  <option value="16">16分</option>
			  <option value="17">17分</option>
			  <option value="18">18分</option>
			  <option value="19">19分</option>
			  <option value="20">20分</option>
			  <option value="21">21分</option>
			  <option value="22">22分</option>
			  <option value="23">23分</option>
			  <option value="24">24分</option>
			  <option value="25">25分</option>
			  <option value="26">26分</option>
			  <option value="27">27分</option>
			  <option value="28">28分</option>
			  <option value="29">29分</option>
			  <option value="30">30分</option>
			  <option value="31">31分</option>
			  <option value="32">32分</option>
			  <option value="33">33分</option>
			  <option value="34">34分</option>
			  <option value="35">35分</option>
			  <option value="36">36分</option>
			  <option value="37">37分</option>
			  <option value="38">38分</option>
			  <option value="39">39分</option>
			  <option value="40">40分</option>
			  <option value="41">41分</option>
			  <option value="42">42分</option>
			  <option value="43">43分</option>
			  <option value="44">44分</option>
			  <option value="45">45分</option>
			  <option value="46">46分</option>
			  <option value="47">47分</option>
			  <option value="48">48分</option>
			  <option value="49">49分</option>
			  <option value="50">50分</option>
			  <option value="51">51分</option>
			  <option value="52">52分</option>
			  <option value="53">53分</option>
			  <option value="54">54分</option>
			  <option value="55">55分</option>
			  <option value="56">56分</option>
			  <option value="57">57分</option>
			  <option value="58">58分</option>
			  <option value="59">59分</option>
			</select>
			</div>
	   </div>
      <div class="control-group">
        <label class="control-label" for="initialPrice">起步价：</label>
        <div class="controls">
          <input class="focused" style="width:100px" name="initialPrice" type="text"  style="height: 26" >元
          <input class="focused" style="width:100px" name="initialKm" type="text"  style="height: 26" >公里
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="overKm">超过：</label>
        <div class="controls">
          	<input class="focused" style="width:90px" name="overKm" type="text"  style="height: 26" >公里
         	加<input class="focused" style="width:80px" name="overPlusPrice" type="text"  style="height: 26" >元
        </div>
      </div>
       <div class="control-group">
        <label class="control-label" for="overKm">等待：</label>
        <div class="controls">
          	<input class="focused" style="width:90px" name="waitTime" type="text"  style="height: 26" >时间
         	加<input class="focused" style="width:80px" name="waitFee" type="text"  style="height: 26" >元
        </div>
      </div>
      <div class="control-group">
        <label class="control-label" for="overKm">所属规则：</label>
        <div class="controls">
          	<select style="width:200px;" name="price_rule_id">
          	   <#list ruleList as rule>
          	   	  <option value="${rule.id}">${rule.name}</option>
          	   </#list>
          	</select>
        </div>
      </div>
      <div class="form-actions">
        <button type="submit" class="btn btn-primary" onsubmit="timePriceSave()">确 定</button>
        <button type="reset" class="btn">重 置</button>
        <button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
      </div>
  </form>
  </div>

<script>
function timePriceDelete(id){
	location.href="/sysUser/deletePrice?id="+id+"&company="+$("input[name='company']").val()+"";
}
</script>
</@layout>